<script setup lang="ts">

import { ref } from 'vue';
import SonCom from '../components/SonCom.vue';

const fName = ref('jack')
const fAge = ref(10)
const fMale = ref(false)
</script>

<template>
<h2>我是父组件</h2>
<!-- 父组件传递数据 -->
<SonCom :name="fName" :age="fAge" :male="fMale"></SonCom>
</template>

<style scoped>

</style>
